package com.kobe.tokendemo.shiro;

import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * 创建 JYQ  on  2018/11/2,16:20
 */

public class SimpleUsernameToken implements AuthenticationToken {
    private  String username;
    private String  password;

    public SimpleUsernameToken(String username, String password) {
        this.username = username;
        this.password = password;
    }

    @Override
    public Object getPrincipal() {
        return username;
    }

    @Override
    public Object getCredentials() {
        return password;
    }
}
